﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Max.PH4.Shoppgin.Admin.Domain
{
    /*
     * Entity：实体
     * EF：Entity Framework 实体框架
     * ORM：对象关系映射
     * 
     * **/

    /// <summary>
    /// 系统用户表（只管理后台，可以登录后台，对数据进行操作）
    /// </summary>
    
    [Table("tb_system_user")]
    public class SystemUserEntity : AuditField
    {
        //[Key]
        public Guid Id { get; set; }

        /// <summary>
        /// 登录名
        /// </summary>
        [Display(Name="登录名")]
        [Required]
        public string Name { get; set; }


        /// <summary>
        /// 密码
        /// </summary>
        [Display(Name = "密码")]
        [Required]
        public string Password { get; set; }

        /// <summary>
        /// 头像
        /// </summary>
        [Column(TypeName ="varchar(max)")]
        public string? HeadImage { get; set; }

        public string State { get; set; }

       
    }

   
}
